package top.infopub.mgr.mkt.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.mgr.mkt.dao.MarketingProjectDao;
import top.infopub.mgr.mkt.domain.ProSellDomain;
import top.infopub.mgr.mkt.domain.ProjectDomain;
import top.infopub.mgr.mkt.service.CollectProjectService;
import top.infopub.mgr.mkt.service.MarketingProjectService;
import top.infopub.mgr.mkt.vo.MarketingVo;
import top.infopub.model.mkt.ProSell;
import top.infopub.model.mkt.ProjectInfo;

@Service
public class MarketingProjectServiceImpl extends GenericServiceImpl<ProjectInfo, String> implements MarketingProjectService {

    @Autowired
  private  MarketingProjectDao marketingProjectDao;

    @Override
    public GenericDao<ProjectInfo, String> getDao() {
        return null;
    }

    @Override
    public Page<ProjectDomain> selectPage(Page<ProjectDomain> page, MarketingVo marketingVo) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<ProjectDomain>)marketingProjectDao.selectPage(marketingVo);
    }
}
